package com.ruoyi.yyq.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.yyq.api.domain.CarServiceDetails;
import com.ruoyi.yyq.api.factory.RemoteCarServiceDetailsFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;


@FeignClient(contextId = "remoteCarServiceDetailsService", value = ServiceNameConstants.YYQ_SERVICE, fallbackFactory = RemoteCarServiceDetailsFallbackFactory.class)
public interface RemoteCarServiceDetailsService {
    //对外暴露接口 查询服务详情列表
    @GetMapping("/fuwudetails/getlist")
    public TableDataInfo getlist(@RequestHeader(SecurityConstants.FROM_SOURCE) String source, CarServiceDetails carServiceDetails);
}
